import { TreeItem } from 'vscode';
import { FileUtil } from '../../../utils';

/**
 * 系统节点
 *
 * @author chitanda
 * @date 2022-12-13 10:12:08
 * @export
 * @class SystemListItem
 * @extends {TreeItem}
 */
export class SystemListItem extends TreeItem {
  constructor(protected data: IData) {
    super(data.pssystemname);
    const darkIcon = FileUtil.resources.resolveResourceUri(
      'icon/dark/folder.svg',
    );
    const lightIcon = FileUtil.resources.resolveResourceUri(
      'icon/light/folder.svg',
    );
    this.iconPath = {
      dark: darkIcon,
      light: lightIcon,
    };
  }
}
